/*
    Copyright (C) 2021 Huawei Device Co., Ltd.
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 */

package com.danikula.videocache.enums;

import java.io.Serializable;

/**
 * @ProjectName: android-video-cache_ohos
 * @Package: com.danikula.videocache.enums
 * @ClassName: StrategyType
 * @Description: java类作用描述
 * @CreateDate: 2021/6/4 14:12
 * @UpdateDate: 2021/6/4 14:12
 * @UpdateRemark: 暂无
 * @Version: 1.0
 */
public enum StrategyType {
    DEFAULT(0, "默认策略"),
    SLICING(1, "分片缓存策略"),
    ONEFILE(2, "分节点缓存策略");

    private int type;
    private String name;

    StrategyType(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
